Skip to content

Fix connectivity races (pubsub pending subscribe + shared-log replication-info)#7

Open
Faolain wants to merge 3 commits intomasterfrom
fix/connectivity-races
Open

Fix connectivity races (pubsub pending subscribe + shared-log replication-info)#7
Faolain wants to merge 3 commits intomasterfrom
fix/connectivity-races

Conversation

@Faolain
Copy link
Owner

@Faolain Faolain commented Feb 6, 2026

Summary

  • Fix DirectSub subscribe debounce race by eager topic init + tracking pending subscriptions for routing and subscriber discovery.
  • Harden shared-log replication-info handling (serialize per-peer apply; buffer on NotStarted; dedupe subscription/request timers).
  • Add pubsub regression tests for initializeTopic race and pending-subscribe window.

Tests

  • pnpm --filter @peerbit/pubsub run build
  • node ./node_modules/aegir/src/index.js run test --roots ./packages/transport/pubsub -- -t node --no-build
  • node ./node_modules/aegir/src/index.js run test --roots ./packages/programs/data/shared-log -- -t node --no-build --grep "replicate:join not emitted on update"
  • node ./node_modules/aegir/src/index.js run test --roots ./packages/programs/data/shared-log -- -t node --no-build --grep "migration-8-9"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant